package com.example.hibernate.b.association;

import java.util.StringTokenizer;

public class User {
	
	private String firstname;
	private String lastname;
	
	public String getName(){
		return firstname + " " + lastname;
	}
	
	public void setName(String name){
		StringTokenizer t = new StringTokenizer(name);
		this.firstname = t.nextToken();
		this.lastname = t.nextToken();
	}
}
